package controller.formation
{
	import model.proxy.FormationProxy; 
	import model.Formation; 
	import org.puremvc.as3.interfaces.INotification; 
	import org.puremvc.as3.patterns.command.SimpleCommand;
	 
	public class ValiderAjoutFormationCommand extends SimpleCommand 
	{ 
		//public static const NAME : String = 'VALIDER_AJOUT_FORMATION_COMMAND';
		 
		/** 
		 * Constructor 
		 */ 
		public function ValiderAjoutFormationCommand() 
		{ 
			super(); 
		} 
		
		/** 
		 * Initialize all commands/controllers of the application 
		 */
		override public function execute(note : INotification) : void 
		{ 
			var formation : Formation = note.getBody() as Formation; 
			var formationProxy:FormationProxy = facade.retrieveProxy(FormationProxy.NAME) as FormationProxy; 
			formationProxy.validerAjoutFormation(formation);
		} 
	}
}